package com.chushouya.order.dto.api.partnernotify;

import com.alibaba.fastjson.annotation.JSONField;
import com.general.framework.core.lang.Dates;
import com.chushouya.order.constants.PartnerNotifyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("订单上门")
public class VisitNotifyDTO extends PartnerBaseNotify{
    public VisitNotifyDTO(){
        super.setNotifyType(PartnerNotifyTypeEnum.VISIT.value());
        super.setNotifyName(PartnerNotifyTypeEnum.VISIT.named());
    }

    /**
     * 订单数据
     */
    private VisitNotifyData data;

    @Data
    @ApiModel("工程师上门数据")
    public static class VisitNotifyData{

        /**
         * 订单状态
         */
        @ApiModelProperty("订单状态")
        private Integer orderStatus;

        /**
         * 上门时间
         */
        @ApiModelProperty("上门时间")
        @JSONField(format= Dates.FMT_FULL_TIME)
        private Date visitTime;

        /**
         * 上门备注
         */
        @ApiModelProperty("上门备注")
        private String remark;
    }
}
